package com.weibo.survey.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Page implements Serializable {
	private static final long serialVersionUID = 95236103131335767L;
	private int id;
	private String title = "未命名";
	private String description;
	private Survey survey;
	private Set<Question> questions = new HashSet<>();
	
	

	public Page(int id) {
		super();
		this.id = id;
	}

	public Page() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Survey getSurvey() {
		return survey;
	}

	public void setSurvey(Survey survey) {
		this.survey = survey;
	}

	public Set<Question> getQuestions() {
		return questions;
	}

	public void setQuestions(Set<Question> questions) {
		this.questions = questions;
	}

	@Override
	public String toString() {
		return "Page [id=" + id + ", title=" + title + ", description=" + description
				+ ", questions=" + questions + "]";
	}

	
}
